<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
        <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<<<<<<< .mine
<title>123</title>
=======
<title>无标题文档</title>
>>>>>>> .r14
<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/gird.css" rel="stylesheet" type="text/css" />
<link href="css/usercenter.css" rel="stylesheet" type="text/css" />
</head>

<script src="../js/jquery_last.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="../js/style/validator.css"></link>
<script src="../js/formValidator.js" type="text/javascript" charset="UTF-8"></script>
<script src="../js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script language="javascript" src="../js/DateTimeMask.js" type="text/javascript"></script>
<script defer="defer" src="../js/datepicker/WdatePicker.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formid:"form1",onerror:function(msg){alert(msg)},onsuccess:function(){return true;}});
	
<<<<<<< .mine
	$("#output").formValidator({forcevalid:true,triggerevent:"change",onshow:"请输入年产量",onfocus:"只能输入0-9之间的数�?,oncorrect:"恭喜�?你输对了"}).inputValidator({min:1,type:"value",onerrormin:"你输入的值必须大于等�?",onerror:"只能输入0-9之间的数字，请确�?});//.defaultPassed();
	$("#product_name").formValidator({onshow:"请输入产品名�?,onfocus:"请输入产品名�?,oncorrect:"产品名称合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"产品名称两边不能有空符号"},onerror:"产品名称不能为空,请确�?});
	$("#specifications").formValidator({onshow:"请输入规�?,onfocus:"请输入规�?,oncorrect:"规格合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"规格两边不能有空符号"},onerror:"规格为空或位数不足或格式错误,请确�?});
	$("#units").formValidator({onshow:"请输入计量单�?,onfocus:"请输入计量单�?,oncorrect:"计量单位合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"计量单位两边不能有空符号"},onerror:"计量单位不能为空,请确�?});
	$("#standard").formValidator({onshow:"请输入执行标准号",onfocus:"请输入执行标准号",oncorrect:"执行标准号合�?}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"执行标准号两边不能有空符�?},onerror:"执行标准号不能为�?请确�?});    	
	$("#iso").formValidator({onshow:"请输入ISO认证�?,onfocus:"请输入ISO认证�?,oncorrect:"ISO认证号合�?}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"ISO认证号两边不能有空符�?},onerror:"ISO认证号不能为�?请确�?});
	$("#kind").formValidator({onshow:"请输入产品种�?,onfocus:"请输入产品种�?,oncorrect:"产品种类合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"产品种类两边不能有空符号"},onerror:"产品种类不能为空,请确�?});
=======
	$("#output").formValidator({forcevalid:true,triggerevent:"change",onshow:"请输入年产量",onfocus:"只能输入0-9之间的数字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:1,type:"value",onerrormin:"你输入的值必须大于等于1",onerror:"只能输入0-9之间的数字，请确认"});//.defaultPassed();
	$("#product_name").formValidator({onshow:"请输入产品名称",onfocus:"请输入产品名称",oncorrect:"产品名称合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"产品名称两边不能有空符号"},onerror:"产品名称不能为空,请确认"});
	$("#specifications").formValidator({onshow:"请输入规格",onfocus:"请输入规格",oncorrect:"规格合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"规格两边不能有空符号"},onerror:"规格为空或位数不足或格式错误,请确认"});
	$("#units").formValidator({onshow:"请输入计量单位",onfocus:"请输入计量单位",oncorrect:"计量单位合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"计量单位两边不能有空符号"},onerror:"计量单位不能为空,请确认"});
	$("#standard").formValidator({onshow:"请输入执行标准号",onfocus:"请输入执行标准号",oncorrect:"执行标准号合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"执行标准号两边不能有空符号"},onerror:"执行标准号不能为空,请确认"});    	
	$("#iso").formValidator({onshow:"请输入ISO认证号",onfocus:"请输入ISO认证号",oncorrect:"ISO认证号合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"ISO认证号两边不能有空符号"},onerror:"ISO认证号不能为空,请确认"});
	$("#kind").formValidator({onshow:"请输入产品种类",onfocus:"请输入产品种类",oncorrect:"产品种类合法"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"产品种类两边不能有空符号"},onerror:"产品种类不能为空,请确认"});
>>>>>>> .r14
});

</script>


<body>
<div class="page">
  <jsp:include page="inc/header.jsp" />
  <div class="content">
    <div class="gird-s5c19">
      <div class="col-main">
        <h2><s:if test="tips==1">企业会员信息修改</s:if><s:else>申请企业会员</s:else></h2>
        <ol class="progress step5">
          <li><s:if test="tips==1"><a href="../user/getComUserView1.action?state=edit"></s:if><s:else><a href="../user/getComUserView1.action"></s:else> 1.企业基本信息</a></li>
          <li><s:if test="tips==1"><a href="../user/getComUserView2.action?state=edit"></s:if><s:else><a href="../user/getComUserView2.action"></s:else>2.企业联系方式</a></li>
          <li><s:if test="tips==1"><a href="../user/getComUserView3.action?state=edit"></s:if><s:else><a href="../user/getComUserView3.action"></s:else>3.企业规模</a></li>
          <li><s:if test="tips==1"><a href="../user/getComUserView4.action?state=edit"></s:if><s:else><a href="../user/getComUserView4.action"></s:else>4.企业生产设备</a></li>
          <li class="on"><s:if test="tips==1"><a href="../user/getComUserView5.action?state=edit"></s:if><s:else><a href="../user/getComUserView5.action"></s:else>5.企业主要产品</a></li>
        </ol>
<<<<<<< .mine
        <h3>第五步，填写主要产品�?/h3>
=======
        <h3>第五步，填写主要产品：</h3>
>>>>>>> .r14
        <div class="input">
          <h4>已添加产品：</h4>
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="added">
            <tr>
              <th>名称</th>
              <th>规格</th>
              <th>计量单位</th>
              <th>年生产量</th>
<<<<<<< .mine
              <th>执行标准�?/th>
              <th>ISO认证�?/th>
=======
              <th>执行标准号</th>
              <th>ISO认证号</th>
>>>>>>> .r14
              <th>产品种类</th>
              <th>操作</th>
            </tr>
            <s:iterator value="productsList">
            <tr>
              <td><s:property value="product_name"/></td>
              <td><s:property value="specifications"/></td>
              <td><s:property value="units"/></td>
              <td><s:property value="output"/></td>
              <td><s:property value="standard"/></td>
              <td><s:property value="iso"/></td>
              <td><s:property value="kind"/></td>
              <td><a href="../user/deleteProducts.action?product_id=<s:property value='product_id'/>">删除</a></td>
            </tr>
            </s:iterator>
          </table>
          <form name="form1" id="form1" action="../user/insertProducts.action" method="post">
<<<<<<< .mine
            <h4>添加产品�?/h4>
=======
            <s:token/>
            <h4>添加产品：</h4>
>>>>>>> .r14
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
<<<<<<< .mine
                <th width="120">名称�?/th>
=======
                <th width="120">名称：</th>
>>>>>>> .r14
                <td width="240"><input name="companyProducts.product_name" id="product_name" type="text" /></td>
                <td><div id="product_nameTip">&nbsp;</td>
              </tr>
              <tr>
<<<<<<< .mine
                <th>规格�?/th>
=======
                <th>规格：</th>
>>>>>>> .r14
                <td><input name="companyProducts.specifications" id="specifications" type="text" /></td>
                <td><div id="specificationsTip">&nbsp;</td>
              </tr>
              <tr>
<<<<<<< .mine
                <th>计量单位�?/th>
=======
                <th>计量单位：</th>
>>>>>>> .r14
                <td><input name="companyProducts.units" id="units" type="text" /></td>
                <td><div id="unitsTip">&nbsp;</td>
              </tr>
              <tr>
<<<<<<< .mine
                <th>年生产量�?/th>
=======
                <th>年生产量：</th>
>>>>>>> .r14
                <td><input name="companyProducts.output" id="output" type="text" /></td>
                <td><div id="outputTip">&nbsp;</td>
              </tr>
              <tr>
                <th>执行标准号：</th>
                <td><input name="companyProducts.standard" id="standard" type="text" /></td>
                <td><div id="standardTip">&nbsp;</td>
              </tr>
              <tr>
                <th width="120">ISO认证号：</th>
                <td width="240"><input name="companyProducts.iso" id="iso" type="text" /></td>
                <td><div id="isoTip">&nbsp;</td>
              </tr>
              <tr>
<<<<<<< .mine
                <th>产品种类�?/th>
=======
                <th>产品种类：</th>
>>>>>>> .r14
                <td><input name="companyProducts.kind" id="kind" type="text" /></td>
                <td><div id="kindTip">&nbsp;</td>
              </tr>
            </table>
            <button type="submit">添加产品</button>
          </form>
        </div>
        <div class="btn">
<<<<<<< .mine
          <button type="button" class="next" onclick="location='../user/addComUser5.action'">完成，提交申�?</button>
=======
          <button type="button" class="next" onclick="location='../user/addComUser5.action'">完成，提交申请</button>
>>>>>>> .r14
        </div>
      </div>
      <div class="col-sub">
        <div class="box">
          <div class="box-tp"></div>
          <div class="box-main">
            <h2>用户中心</h2>
            <ul>
              <li><a href="../user/getComRegState.action">申请企业会员</a></li>
              <li><a href="../user/webUserEdit.action">资料修改</a></li>
              <li><a href="../note/getNoteListByUser.action">我的消息</a></li>
              <li><a href="#">我要投稿</a></li>
<<<<<<< .mine
              <li><a href="../user/UserLoginOut.action">退�?/a></li>
=======
              <li><a href="../user/UserLoginOut.action">退出</a></li>
>>>>>>> .r14
            </ul>
          </div>
          <div class="box-bt"></div>
        </div>
      </div>
    </div>
  </div>
  <div class="footer"></div>
</div>
</body>
</html>

